<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>巡检管理 - 工业管道安全巡检系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .sidebar-gradient {
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
        }
    </style>
</head>
<body class="bg-gray-100">
    <!-- 顶部导航栏 -->
    <nav class="bg-white shadow-sm border-b border-gray-200 fixed w-full top-0 z-40">
        <div class="px-6 py-4">
            <div class="flex items-center justify-between">
                <div class="flex items-center">
                    <div class="flex items-center space-x-4">
                        <i class="fas fa-industry text-2xl text-blue-600"></i>
                        <div>
                            <h1 class="text-xl font-bold text-gray-800">工业管道安全巡检系统</h1>
                            <p class="text-sm text-gray-500">Pipeline Safety Inspection System</p>
                        </div>
                    </div>
                </div>
                
                <div class="flex items-center space-x-4">
                    <div class="flex items-center space-x-2 text-sm text-gray-600">
                        <i class="fas fa-bell"></i>
                        <span class="bg-red-500 text-white text-xs px-2 py-1 rounded-full">3</span>
                    </div>
                    <div class="flex items-center space-x-2">
                        <img src="https://ui-avatars.com/api/?name=Admin&background=3b82f6&color=fff" alt="用户头像" class="w-8 h-8 rounded-full">
                        <span class="text-sm font-medium text-gray-700">管理员</span>
                        <i class="fas fa-chevron-down text-gray-400"></i>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <div class="flex pt-16">
        <!-- 侧边栏 -->
        <aside class="sidebar-gradient w-64 min-h-screen fixed left-0 top-16 shadow-lg">
            <div class="p-6">
                <nav class="space-y-2">
                    <a href="dashboard.html" class="flex items-center space-x-3 text-white/80 hover:text-white hover:bg-white/10 rounded-lg px-3 py-2 transition-all">
                        <i class="fas fa-tachometer-alt w-5"></i>
                        <span>控制台</span>
                    </a>
                    <a href="line-management.html" class="flex items-center space-x-3 text-white/80 hover:text-white hover:bg-white/10 rounded-lg px-3 py-2 transition-all">
                        <i class="fas fa-route w-5"></i>
                        <span>线路管理</span>
                    </a>
                    <a href="inspection-management.html" class="flex items-center space-x-3 text-white bg-white/20 rounded-lg px-3 py-2">
                        <i class="fas fa-search w-5"></i>
                        <span>巡检管理</span>
                    </a>
                    <a href="defect-management.html" class="flex items-center space-x-3 text-white/80 hover:text-white hover:bg-white/10 rounded-lg px-3 py-2 transition-all">
                        <i class="fas fa-exclamation-triangle w-5"></i>
                        <span>缺陷管理</span>
                    </a>
                    <a href="statistics.html" class="flex items-center space-x-3 text-white/80 hover:text-white hover:bg-white/10 rounded-lg px-3 py-2 transition-all">
                        <i class="fas fa-chart-bar w-5"></i>
                        <span>统计报表</span>
                    </a>
                </nav>
            </div>
        </aside>

        <!-- 主内容区域 -->
        <main class="flex-1 ml-64 p-6">
            <!-- 面包屑导航 -->
            <div class="mb-6">
                <nav class="flex text-sm text-gray-500">
                    <a href="dashboard.html" class="hover:text-gray-700">控制台</a>
                    <i class="fas fa-chevron-right mx-2"></i>
                    <span class="text-gray-900 font-medium">巡检管理</span>
                </nav>
            </div>

            <!-- 页面标题和操作按钮 -->
            <div class="flex items-center justify-between mb-6">
                <div>
                    <h1 class="text-2xl font-bold text-gray-900">巡检管理</h1>
                    <p class="text-gray-600 mt-1">管理巡检任务制定、分配和执行进度跟踪</p>
                </div>
                <div class="flex space-x-3">
                    <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors flex items-center space-x-2">
                        <i class="fas fa-plus"></i>
                        <span>新建任务</span>
                    </button>
                    <button class="bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700 transition-colors flex items-center space-x-2">
                        <i class="fas fa-download"></i>
                        <span>导出报告</span>
                    </button>
                </div>
            </div>

            <!-- 统计卡片 -->
            <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-6">
                <div class="bg-white rounded-lg shadow-sm border border-gray-200 p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-600">待执行</p>
                            <p class="text-3xl font-bold text-yellow-600">8</p>
                        </div>
                        <div class="bg-yellow-100 p-3 rounded-lg">
                            <i class="fas fa-clock text-yellow-600 text-xl"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white rounded-lg shadow-sm border border-gray-200 p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-600">进行中</p>
                            <p class="text-3xl font-bold text-blue-600">12</p>
                        </div>
                        <div class="bg-blue-100 p-3 rounded-lg">
                            <i class="fas fa-running text-blue-600 text-xl"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white rounded-lg shadow-sm border border-gray-200 p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-600">已完成</p>
                            <p class="text-3xl font-bold text-green-600">156</p>
                        </div>
                        <div class="bg-green-100 p-3 rounded-lg">
                            <i class="fas fa-check-circle text-green-600 text-xl"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white rounded-lg shadow-sm border border-gray-200 p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-sm font-medium text-gray-600">完成率</p>
                            <p class="text-3xl font-bold text-purple-600">89.2%</p>
                        </div>
                        <div class="bg-purple-100 p-3 rounded-lg">
                            <i class="fas fa-chart-line text-purple-600 text-xl"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 巡检任务列表 -->
            <div class="bg-white rounded-lg shadow-sm border border-gray-200">
                <div class="px-6 py-4 border-b border-gray-200">
                    <h3 class="text-lg font-semibold text-gray-900">巡检任务列表</h3>
                </div>
                <div class="p-6">
                    <div class="overflow-x-auto">
                        <table class="w-full">
                            <thead class="bg-gray-50">
                                <tr>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">任务编号</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">线路名称</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">巡检员</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">计划时间</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">状态</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">进度</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">操作</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-gray-200">
                                <tr class="hover:bg-gray-50">
                                    <td class="px-6 py-4 text-sm font-medium text-blue-600">INS-2025-001</td>
                                    <td class="px-6 py-4 text-sm text-gray-900">东区主干管道</td>
                                    <td class="px-6 py-4 text-sm text-gray-900">李巡检员</td>
                                    <td class="px-6 py-4 text-sm text-gray-500">2025-01-17 09:00</td>
                                    <td class="px-6 py-4">
                                        <span class="inline-flex px-2 py-1 text-xs font-semibold rounded-full bg-blue-100 text-blue-800">
                                            进行中
                                        </span>
                                    </td>
                                    <td class="px-6 py-4">
                                        <div class="w-full bg-gray-200 rounded-full h-2">
                                            <div class="bg-blue-600 h-2 rounded-full" style="width: 65%"></div>
                                        </div>
                                        <span class="text-xs text-gray-500">65%</span>
                                    </td>
                                    <td class="px-6 py-4 text-sm font-medium">
                                        <div class="flex items-center space-x-2">
                                            <button class="text-blue-600 hover:text-blue-800">查看</button>
                                            <button class="text-green-600 hover:text-green-800">跟踪</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </main>
    </div>
</body>
</html>
<body class="bg-gray-100">
    <!-- 顶部导航栏 -->
    <nav class="bg-blue-600 text-white p-4 shadow-lg">
        <div class="flex justify-between items-center">
            <h1 class="text-xl font-bold">巡检管理</h1>
            <button class="bg-green-500 hover:bg-green-600 px-4 py-2 rounded-lg">
                <i class="fas fa-plus mr-2"></i>新建任务
            </button>
        </div>
    </nav>

    <div class="flex">
        <!-- 侧边栏 -->
        <aside class="bg-white w-64 min-h-screen shadow-lg">
            <nav class="p-4">
                <ul class="space-y-2">
                    <li><a href="#" class="flex items-center p-3 text-gray-700 hover:bg-gray-100 rounded-lg">
                        <i class="fas fa-tachometer-alt w-6"></i>
                        <span class="ml-3">主控制台</span>
                    </a></li>
                    <li><a href="#" class="flex items-center p-3 text-gray-700 hover:bg-gray-100 rounded-lg">
                        <i class="fas fa-route w-6"></i>
                        <span class="ml-3">线路管理</span>
                    </a></li>
                    <li><a href="#" class="flex items-center p-3 bg-blue-50 text-blue-600 rounded-lg">
                        <i class="fas fa-clipboard-check w-6"></i>
                        <span class="ml-3">巡检管理</span>
                    </a></li>
                </ul>
            </nav>
        </aside>

        <!-- 主内容区 -->
        <main class="flex-1 p-6">
            <!-- 工具栏 -->
            <div class="bg-white p-4 rounded-lg shadow mb-6">
                <div class="flex justify-between items-center">
                    <div class="flex space-x-4">
                        <select class="px-4 py-2 border border-gray-300 rounded-lg">
                            <option>全部状态</option>
                            <option>待执行</option>
                            <option>进行中</option>
                            <option>已完成</option>
                        </select>
                        <input type="date" class="px-4 py-2 border border-gray-300 rounded-lg">
                    </div>
                    <div class="flex space-x-2">
                        <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg">
                            <i class="fas fa-download mr-2"></i>导出
                        </button>
                    </div>
                </div>
            </div>

            <!-- 巡检任务列表 -->
            <div class="bg-white rounded-lg shadow">
                <div class="p-4 border-b">
                    <h3 class="text-lg font-semibold">巡检任务列表</h3>
                </div>
                <div class="overflow-x-auto">
                    <table class="w-full">
                        <thead class="bg-gray-50">
                            <tr>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">任务编号</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">线路名称</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">巡检员</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">计划时间</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">状态</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">进度</th>
                                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">操作</th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-gray-200">
                            <tr class="hover:bg-gray-50">
                                <td class="px-6 py-4 text-sm font-medium text-blue-600">INS-2025-001</td>
                                <td class="px-6 py-4 text-sm text-gray-900">输油主干线A-001</td>
                                <td class="px-6 py-4 text-sm text-gray-900">李巡检员</td>
                                <td class="px-6 py-4 text-sm text-gray-900">2025-01-17 09:00</td>
                                <td class="px-6 py-4">
                                    <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">进行中</span>
                                </td>
                                <td class="px-6 py-4">
                                    <div class="w-full bg-gray-200 rounded-full h-2">
                                        <div class="bg-blue-600 h-2 rounded-full" style="width: 65%"></div>
                                    </div>
                                    <span class="text-xs text-gray-500">65%</span>
                                </td>
                                <td class="px-6 py-4 text-sm space-x-2">
                                    <button class="text-blue-600 hover:text-blue-800">查看</button>
                                    <button class="text-green-600 hover:text-green-800">跟踪</button>
                                </td>
                            </tr>
                            <tr class="hover:bg-gray-50">
                                <td class="px-6 py-4 text-sm font-medium text-blue-600">INS-2025-002</td>
                                <td class="px-6 py-4 text-sm text-gray-900">输油支线B-002</td>
                                <td class="px-6 py-4 text-sm text-gray-900">王巡检员</td>
                                <td class="px-6 py-4 text-sm text-gray-900">2025-01-18 08:30</td>
                                <td class="px-6 py-4">
                                    <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">待执行</span>
                                </td>
                                <td class="px-6 py-4">
                                    <div class="w-full bg-gray-200 rounded-full h-2">
                                        <div class="bg-yellow-600 h-2 rounded-full" style="width: 0%"></div>
                                    </div>
                                    <span class="text-xs text-gray-500">0%</span>
                                </td>
                                <td class="px-6 py-4 text-sm space-x-2">
                                    <button class="text-blue-600 hover:text-blue-800">编辑</button>
                                    <button class="text-red-600 hover:text-red-800">取消</button>
                                </td>
                            </tr>
                            <tr class="hover:bg-gray-50">
                                <td class="px-6 py-4 text-sm font-medium text-blue-600">INS-2025-003</td>
                                <td class="px-6 py-4 text-sm text-gray-900">输油支线C-003</td>
                                <td class="px-6 py-4 text-sm text-gray-900">张巡检员</td>
                                <td class="px-6 py-4 text-sm text-gray-900">2025-01-16 14:00</td>
                                <td class="px-6 py-4">
                                    <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">已完成</span>
                                </td>
                                <td class="px-6 py-4">
                                    <div class="w-full bg-gray-200 rounded-full h-2">
                                        <div class="bg-green-600 h-2 rounded-full" style="width: 100%"></div>
                                    </div>
                                    <span class="text-xs text-gray-500">100%</span>
                                </td>
                                <td class="px-6 py-4 text-sm space-x-2">
                                    <button class="text-blue-600 hover:text-blue-800">报告</button>
                                    <button class="text-purple-600 hover:text-purple-800">导出</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </main>
    </div>
</body>
</html>